import Mock from 'mockjs'
import loginAPI from './login'
import articleApi from './article'
// import Common from './common'

// 登录相关
Mock.mock(/login/, 'post', loginAPI.login)
Mock.mock(/logout/, 'post', loginAPI.logout)

// 文章相关
Mock.mock(/\/list\.*/, 'get', articleApi.list)
Mock.mock(/\/post\.*/, 'get', articleApi.post)

// 其他
Mock.mock('https://lvpin100.com/aa', 'get', {
  name: '@cname'
  // ...Common.ajaxObj({ name: '淘宝', desc: '马云爸爸' })
})

Mock.setup({
  timeout: '200-6000'
})
export default Mock
